//
//  BDMyOrderCell.h
//  iOS_beboy
//
//  Created by wen on 2017/9/20.
//  Copyright © 2017年 com.8xiong. All rights reserved.
//

#import "BDBaseTableViewCell.h"
#import "BDMyOrderLayout.h"

@class BDMyOrderCell;
@protocol BDMyOrderCellDelegate;

@interface BDMyOrderTitleView : UIView

@property (nonatomic, strong) UIView *line;
@property (nonatomic, strong) YYLabel *titleLabel;
- (void)setLayout:(BDMyOrderLayout *)layout;

@end

@interface BDMyOrderToolbar : UIView

@property (nonatomic, strong) UIView *line;
@property (nonatomic, strong) YYLabel *toolLabel;
- (void)setLayout:(BDMyOrderLayout *)layout;

@end

@interface BDMyOrderView : UIView

@property (nonatomic, strong) UIView *contentView;
@property (nonatomic, strong) BDMyOrderTitleView *titleView;
@property (nonatomic, strong) BDMyOrderToolbar *toolbarView;
@property (nonatomic, strong) UIImageView *contentImageView;
@property (nonatomic, strong) YYLabel *contentLabel;
@property (nonatomic, strong) YYLabel *priceLabel;
@property (nonatomic, strong) UIButton *userButton;
@property (nonatomic, strong) BDMyOrderLayout *layout;
@property (nonatomic, weak) BDMyOrderCell *cell;

@end

@interface BDMyOrderCell : BDBaseTableViewCell

@property (nonatomic, weak) id<BDMyOrderCellDelegate> delegate;
@property (nonatomic, strong) BDMyOrderView *orderView;
- (void)setLayout:(BDMyOrderLayout *)layout;


@end

@protocol BDMyOrderCellDelegate <NSObject>

@optional
- (void)cellDidClickButton:(BDMyOrderCell *)cell;
- (void)cellDidClick:(BDMyOrderCell *)cell;
@end
